package main

import("fmt")

func G(){
	defer func(){
		fmt.Println("1")
	}()	
	defer func(){
		if err:= recover();err != nil{
			fmt.Println("get err",err)
		}
	}()
	F()
}

func F(){
		defer func(){
		fmt.Println("2")
		}()
		
	panic("panic")
}

func main(){	
	G()
}
